package com.syx.api.Model;

import com.syx.api.Model.DTO.JudgeSubmitDTO;
import com.syx.api.Model.VO.UserQuestionResultVO;
import com.syx.commoncore.Constant.Constant;
import com.syx.commoncore.Model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

//自动注册到nacos
@FeignClient(contextId = "RemoteJudgeService", value = Constant.JUDGE_SERVICE)
public interface RemoteJudgeService {

    @PostMapping("/judge/doJudgeJavaCode")
    Result<UserQuestionResultVO> doJudgeJavaCode(@RequestBody JudgeSubmitDTO judgeSubmitDTO);
}
